'use strict';
module.exports = app => {
  const { BIGINT, STRING, DATE, TEXT } = app.Sequelize;
  return app.model.define('design_tpls', {
    design_id: {
      type: BIGINT,
      field: 'id',
      primaryKey: true,
      autoIncrement: true,
    },
    // tort_word_id: BIGINT,
    regNo: TEXT,
    regDate: DATE,
    last_crawler_time: DATE,
    image: STRING,
  },
  {
    indexes: [
      {
        name: 'regNo',
        fields: [ 'regNo' ],
      },
    ],
    underscored: true,
    paranoid: true,
  });
};
